package org.example.taobao.demo.order.config;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.math.BigDecimal;

/**
 * @author liwei
 * @date 2022/6/11 7:10 PM
 */
@Configuration
public class UserBalanceConfig {

    @Bean
    public UserBalance userBalance() {
        return new UserBalance(new BigDecimal("900"));
    }

    @AllArgsConstructor
    @Getter
    public static class UserBalance {
        BigDecimal balance;
    }
}
